
import sys

from PyQt4.QtGui import *
from PyQt4.QtCore import *

app = QApplication(sys.argv)

win = QMainWindow(None)
dock = QDockWidget()
dia = QColorDialog()
dock.setWidget(dia)
win.addDockWidget(Qt.LeftDockWidgetArea, dock)

win.show()
app.exec_()
